package com.carl.mall.search.vo;


import lombok.Data;

import java.util.List;

/**
 * 封装页面可能提交的关键字
 */
@Data
public class SearchParam {


    private  String keyword;   //查询的关键字


    private Long catalog3Id;  //三级分类的id


    /**
     * sort=saleCount_asc/desc
     * sort=skuPrice_asc/desc
     * sort=hotScore_asc/desc
     */
    private String sort;  //排序条件


    //查询的筛选条件  hasStock = 0/1
    private Integer hasStock = 1;

    //brandId = 1&brandId = 2
    private List<Long> brandId;  //按品牌id进行查询   可以多选


    //skuPrice = 200_300
    //skuPrice = _300
    //skuPrice = 200_
    private String skuPrice; //价格区间查询


    //不同的属性  attrs:1_苹果:6.5寸
    private List<String> attrs; //按照规格参数进行筛选

    private Integer pageNum = 1; // 页码




}


















